package com.itheima.exerciseTest.method30_39.method31;

import java.util.ArrayList;

// 面包店类
public class Storefront {
    // 定义桌子
    private volatile ArrayList<Integer> list;
    // 定义今天蛋糕个数
    private volatile int number;
    // 定义今天面做了多少蛋糕
    private volatile int count;
    // 定义桌子上能放多少蛋糕
    private volatile int maxisize;

    public Storefront() {
        this(new ArrayList<Integer>(),100,0,1);
    }

    public Storefront(ArrayList<Integer> list, int number, int count, int maxisize) {
        this.list = list;
        this.number = number;
        this.count = count;
        this.maxisize = maxisize;
    }

    public ArrayList<Integer> getList() {
        return list;
    }

    public void setList(ArrayList<Integer> list) {
        this.list = list;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getMaxisize() {
        return maxisize;
    }

    public void setMaxisize(int maxisize) {
        this.maxisize = maxisize;
    }
}
